package com.eshop.web.page.template;

import com.eshop.web.page.AdminPage;
import com.eshop.web.page.IndexPage;
import com.eshop.web.page.UserPage;
import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.Page;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;

/**
 * Created by IntelliJ IDEA.
 * User: Sergey
 * Date: 17.10.13
 * Time: 0:21
 * To change this template use File | Settings | File Templates.
 */
public class BaseTemplate extends WebPage {
    protected WebMarkupContainer mainMarkupContainer;

    public BaseTemplate() {

        mainMarkupContainer = new WebMarkupContainer("mainMarkupContainer");
        mainMarkupContainer.setOutputMarkupId(true);
        add(mainMarkupContainer);

        /*mainMarkupContainer.add(new Link("linkToHomePage"){
            @Override
            public void onClick() {
                Page next = new IndexPage();
                setResponsePage(next);
            }
        });

        mainMarkupContainer.add(new Link("linkToUserPage"){
            @Override
            public void onClick() {
                Page next = new UserPage();
                setResponsePage(next);
            }
        });

        mainMarkupContainer.add(new Link("linkToAdminPage"){
            @Override
            public void onClick() {
                Page next = new AdminPage();
                setResponsePage(next);
            }
        });*/
    }
}
